<!--
 * @Description: 首页
 * @Author 卞鹏飞 <228443632@qq.com>
 * @create 07/09/24 PM12:21
 -->
<!--setup-->
<script setup>
import { onMounted, getCurrentInstance } from 'vue'
import useUserStore from '@/store/use-user-store'

const { proxy } = getCurrentInstance()
const props = defineProps({})
const emit = defineEmits([])

/* 状态 */
const userStore = useUserStore()

/* 方法 */

/* 计算 */

/* 监听 */

/* 周期 */
onMounted(() => {})

/* 暴露 */
defineExpose({
  $: proxy.$
})
</script>

<!--render-->
<template>
  <main class="relative bg-white p-4">
    <!-- 内容区 -->
    <h1 class="text-xl font-bold text-high">
      👏欢迎回来，{{ userStore.userInfo?.empName }}！
    </h1>
    <img
      src="@/assets/imgs/home/bg-default.svg"
      alt="home"
      class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"
    >
  </main>
</template>

<!--style-->
<style scoped lang="less"></style>
